package D1;

import java.util.Objects;

public class Person implements Cloneable {
    public String name;
    public int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
    public int hashCode() {
        return Objects.hash(name, age);
    }
}